﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;

namespace Nova_BLL
{
    public class ABC_Class
    {
        DataSet ds = null;
        Nova_DAL.ABC_Class Nova_DAL_ABC_Class = new Nova_DAL.ABC_Class();

        /// <summary>
        /// 修改ABC百分比
        /// </summary>
        /// <param name="strLane">巷道号</param>
        /// <param name="fA"></param>
        /// <param name="fB"></param>
        /// <param name="fC"></param>
        /// <returns></returns>
        /// Writer：[夏鑫]
        /// Create Date： [2010-7-06]
        public string UpdateSysoption(string strLane, float fA, float fB, float fC)
        {
            string strErrMsg = "";
            try
            {
                strErrMsg = Nova_DAL_ABC_Class.UpdateSysoption(strLane, fA, fB, fC);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return strErrMsg;
        }

        /// <summary>
        /// ABC百分比列表
        /// </summary>
        /// <param name="strLane"></param>
        /// <returns></returns>
        /// Writer：[夏鑫]
        /// Create Date： [2010-7-06]
        public DataSet ListSysoption(string strLane)
        {
            try
            {
                ds = Nova_DAL_ABC_Class.ListSysoption(strLane);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return ds;
        }

        /// <summary>
        /// ABC百分比
        /// </summary>
        /// <param name="strLane">巷道号</param>
        /// <param name="strKind">ABC分类：A:1,B:2,C:3</param>
        /// <returns></returns>
        /// Writer：[夏鑫]
        /// Create Date： [2010-7-06]
        public int CountSysoption(string strLane, string strKind)
        {
            int iCount = 0;
            try
            {
                iCount = Convert.ToInt32(Nova_DAL_ABC_Class.CountSysoption(strLane, strKind));
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return iCount;
        }

        /// <summary>
        /// 获得总的货位号
        /// </summary>
        /// <param name="strLane">巷道号</param>
        /// <returns></returns>
        /// Writer：[夏鑫]
        /// Create Date： [2010-9-10]
        public int CountPosID(string strLane)
        {
            int iCount = 0;
            try
            {
                iCount = Convert.ToInt32(Nova_DAL_ABC_Class.CountPosID(strLane));
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return iCount;
        }

        /// <summary>
        /// ABC颜色
        /// </summary>
        /// <param name="strValuechar">ABC分类</param>
        /// <returns></returns>
        /// Writer：[夏鑫]
        /// Create Date： [2010-7-08]
        public string BackColorSysoption(string strValuechar)
        {
            string strBackColor = "";
            try
            {
                strBackColor = Nova_DAL_ABC_Class.BackColorSysoption(strValuechar);
            }
            catch (Exception ex)
            {
                Console.Write(ex.ToString());
            }
            return strBackColor;
        }
    }
}

